﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace GoDive.Contract
{
    public class tregion
    {
        [Key]
        public long ID { get; set; }

        [NotMapped]
        public List<tdestination> Destinations
        {
            get;
            set;
        }

        /// <summary>
        /// 地理区域级别
        /// </summary>
        public System.SByte Level { get; set; }

        /// <summary>
        /// 父级区域ID
        /// </summary>
        public long ParentID { get; set; }

        /// <summary>
        /// 区域中文名
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 区域英文名
        /// </summary>
        public string EnName { get; set; }

        /// <summary>
        /// 潜点经度坐标
        /// </summary>
        public decimal Lng { get; set; }

        /// <summary>
        /// 潜点纬度坐标
        /// </summary>
        public decimal Lat { get; set; }

        /// <summary>
        /// 是否热门
        /// </summary>
        public System.SByte IsHot { get; set; }

        public int OrderIndex { get; set; }

        /// <summary>
        /// 最后更新时间
        /// </summary>
        public DateTime DataChangeTime { get; set; }
    }
}